#include <string>
#include <iostream>
#include <boost/beast/core.hpp>
#include "HttpServer.h"

int main()
{
	try
	{
		::boost::asio::io_context ioc;
		std::cout << "启动后端服务（端口：8080）" << std::endl;
		HttpServer(ioc, "0.0.0.0", 8080).listen();
	}
	catch (const std::exception& e)
	{
		std::cout << "报错：" << e.what() << std::endl;
		return 1;
	}

	return 0;
}
